# Step must like these.
# 1. bximage generate pm.img(fd);
# 2. bochs;
# 3. format b: in bochs.
# 4. make
# 5. enter b:\
# 6. excute pmtest1.com
#


pmtest1.com:	pmtest1.asm
	nasm generate_boot.asm -o boot.bin
	dd if=boot.bin of=pm.img bs=512 conv=notrunc
	nasm pmtest1.asm -o pmtest1.com

.PHONY:
mount_img:
	mount -o loop pm.img /mnt/floppy
	cp pmtest1.com /mnt/floppy
	umount /mnt/floppy

clean:
	rm -rf *.com pm.img boot.bin

